package com;

/**
 * @Description TODO
 * @Author com.com.hyl
 * @Date 2022/9/6 9:59
 **/
public class Student extends Person {
	public String stuNo; //学号
	public String className;  //班级

	public void show(){
		System.out.println("姓名："+name+",年龄："+age+",学号："+stuNo+",班级："+className);
	}

	public void show(String msg){
		System.out.println(msg);
	}



	Student() {
	}

	private Student(String className) {
		this.className = className;
	}

	public Student(String stuNo, String className) {
		this.stuNo = stuNo;
		this.className = className;
	}
}
